package com.gopay.common.domain.dps;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;

/**
 * 
 * <p>Title: 钱包多次验证短信验证码验证表WaCheckSms.java</p>
 * <p>Description: TODO
 * 用于钱包短信验证码校验
 * 目前应用场景：
 * 1、新卡快捷支付时，接收验证码,验证通过后顺序号+1，再调用dopay时，需核验顺序号值是否正确（防止跳过短信验证接口，直接请求dopay接口）
 * </p>
 * <p>Company: 国付宝信息科技有限公司</p> 
 * @author 唐阳
 * @date 2016年6月3日 下午2:44:56
 * @version V1.0
 */
@Entity
@Table(name = "WA_CHECK_SMS")
public class WaCheckSms extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer seq;
	private String keyValue;
	private String appId;
	private Integer currentOrder;
	@Id
    @Column(name = "SEQ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "WA_CHECK_SMS_SEQ")
    @SequenceGenerator(name = "WA_CHECK_SMS_SEQ", allocationSize = 1, initialValue = 1, sequenceName = "WA_CHECK_SMS_SEQ")
	public Integer getSeq() {
		return seq;
	}
	public void setSeq(Integer seq) {
		this.seq = seq;
	}
	@Column(name = "KEY_VALUE", length = 30)
	public String getKeyValue() {
		return keyValue;
	}
	public void setKeyValue(String keyValue) {
		this.keyValue = keyValue;
	}
	@Column(name = "APP_ID", length = 30)
	public String getAppId() {
		return appId;
	}
	public void setAppId(String appId) {
		this.appId = appId;
	}
	@Column(name = "CURRENT_ORDER")
	public Integer getCurrentOrder() {
		return currentOrder;
	}
	public void setCurrentOrder(Integer currentOrder) {
		this.currentOrder = currentOrder;
	}
	
}
